package com.zhp.farmerclient.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.ToString;
import org.springframework.stereotype.Component;

import java.time.LocalTime;
import java.util.Date;

@Data
@Component
@ToString
public class Post {
    @TableId(type = IdType.AUTO)
    private Integer id;
    private String title;
    private String content;
    private String user_id;
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date time;
    private Integer likes;
}
